package se19team1e.exception;

/**
 * Class created to display exception while accessing database.
 * 
 * @author Arun Manivannan
 * 
 */
public class DataAccessException extends Exception {

	private static final long serialVersionUID = 1L;
	String message = "Exception while accessing database.";

	/**
	 * Constructor class for DataAccessException
	 */
	public DataAccessException() {
	}

	/**
	 * To display the message for data access exception
	 * 
	 * @param message
	 *            String message to be set (defined within the
	 *            DataAccessException class)
	 */
	public DataAccessException(String message) {
		this.message = message;
	}

	/**
	 * Getter to get teh message for data access exception
	 * 
	 * @return String message (defined within the DataAccessException class)
	 */
	@Override
	public String getMessage() {
		return message;
	}

}
